Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / model / src / commonMain / kotlin / org / meshtastic / core / model / util / ByteStringSerializer.kt

Displaying Raw • Download

core/model/src/commonMain/kotlin/org/meshtastic/core/model/util/ByteStringSerializer.kt bf929c20f274232e0eb8ddc19b2dc82403e99e5b (bf929c20) Text, 1.58 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.model.util

Tff7b72import T7ee787kotlinx.serialization.KSerializer
Tff7b72import T7ee787kotlinx.serialization.builtins.ByteArraySerializer
Tff7b72import T7ee787kotlinx.serialization.descriptors.SerialDescriptor
Tff7b72import T7ee787kotlinx.serialization.encoding.Decoder
Tff7b72import T7ee787kotlinx.serialization.encoding.Encoder
Tff7b72import T7ee787okio.ByteString
Tff7b72import T7ee787okio.ByteString.Companion.toByteString

T8b949e/** Serializer for Okio [ByteString] using kotlinx.serialization */
Tff7b72object T56d364ByteStringSerializer Tb4b4b4: Te6edf3KSerializerTff7b72<Te6edf3ByteStringTff7b72> Tb4b4b4{
Tff7b72private Tff7b72val Te6edf3byteArraySerializer Tff7b72= Te6edf3ByteArraySerializerTb4b4b4(Tb4b4b4)

Tff7b72override Tff7b72val Te6edf3descriptorTb4b4b4: Te6edf3SerialDescriptor Tff7b72= Te6edf3byteArraySerializerTb4b4b4.Te6edf3descriptor

Tff7b72override Tff7b72fun Td2a8ffserializeTb4b4b4(Te6edf3encoderTb4b4b4: Te6edf3EncoderTb4b4b4, Te6edf3valueTb4b4b4: Te6edf3ByteStringTb4b4b4) Tb4b4b4{
Te6edf3byteArraySerializerTb4b4b4.Te6edf3serializeTb4b4b4(Te6edf3encoderTb4b4b4, Te6edf3valueTb4b4b4.Te6edf3toByteArrayTb4b4b4(Tb4b4b4)Tb4b4b4)
Tb4b4b4}

Tff7b72override Tff7b72fun Td2a8ffdeserializeTb4b4b4(Te6edf3decoderTb4b4b4: Te6edf3DecoderTb4b4b4)Tb4b4b4: Te6edf3ByteString Tff7b72= Te6edf3byteArraySerializerTb4b4b4.Te6edf3deserializeTb4b4b4(Te6edf3decoderTb4b4b4)Tb4b4b4.Te6edf3toByteStringTb4b4b4(Tb4b4b4)
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s